# coding:utf8

import re

#输入科目,科目的输入,要求只能输入中文
while True:
    zhPattern = re.compile(u'[\u4e00-\u9fa5]+')
    subject = input('请输入科目:')
    issubject = zhPattern.search(subject)
    if issubject == None:
        print('Your enter is wrong,Please enter angin\n(The sunject shoud be Chinese.)')
    else:
        break

file_name = open(r'D:\Python\{}.txt','rw',encoding="utf8")



#输出项
print(subject)